import request from '@/util/request'

export function getUserInfo() {
  return request({
    url: '/userinfo',
    method: 'get'
  })
}

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data:data
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

export function register(data) {
  return request({
    url: '/register',
    method: 'post',
    data:data
  })
}